package ltd.newbee.mall.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * 路由查询业务请求参数
 */
public class RouteQueryReqDto {
    @JsonProperty("language")
    private String language;

    @JsonProperty("trackingType")
    private Integer trackingType;

    @JsonProperty("trackingNumber")
    private List<String> trackingNumber;

    @JsonProperty("methodType")
    private Integer methodType;

    @JsonProperty("referenceNumber")
    private String referenceNumber;

    @JsonProperty("checkPhoneNo")
    private String checkPhoneNo;

    // 构造方法
    public RouteQueryReqDto() {}

    public RouteQueryReqDto(Integer trackingType, List<String> trackingNumber) {
        this.trackingType = trackingType;
        this.trackingNumber = trackingNumber;
        this.methodType = 1; // 默认标准路由查询
        this.language = "zh-CN"; // 默认中文
    }

    // getter和setter方法
    public String getLanguage() { return language; }
    public void setLanguage(String language) { this.language = language; }

    public Integer getTrackingType() { return trackingType; }
    public void setTrackingType(Integer trackingType) { this.trackingType = trackingType; }

    public List<String> getTrackingNumber() { return trackingNumber; }
    public void setTrackingNumber(List<String> trackingNumber) { this.trackingNumber = trackingNumber; }

    public Integer getMethodType() { return methodType; }
    public void setMethodType(Integer methodType) { this.methodType = methodType; }

    public String getReferenceNumber() { return referenceNumber; }
    public void setReferenceNumber(String referenceNumber) { this.referenceNumber = referenceNumber; }

    public String getCheckPhoneNo() { return checkPhoneNo; }
    public void setCheckPhoneNo(String checkPhoneNo) { this.checkPhoneNo = checkPhoneNo; }
}
